<%-- 
    Document   : menu
    Created on : 2010. 1. 15, 오후 1:29:42
    Author     : narae
--%>

<%@page contentType="text/html" pageEncoding="utf-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>CanYouTalk Debug Server</title>
    </head>

    <script language ="javascript">
        function getNormalView(){
            parent.document.getElementById("frame").rows = "100%,0%";
            
            var form = document.control;
            form.target = "main";
            form.action = "TempLogQueryServlet?serviceId=getNormalView&nowPage=1&queryCount=100";
            form.submit();

            form.target = "subMain";
            form.action="about:blank";
            form.submit();
        }
        function getDetailView(){
            parent.document.getElementById("frame").rows = "100%,0%";
            
            var form = document.control;
            form.target = "main";
            form.action = "TempLogQueryServlet?serviceId=getDetailView&nowPage=1&queryCount=10";
            form.submit();

            form.target = "subMain";
            form.action="about:blank";
            form.submit();
        }
        function getDetailAggregation(){
            parent.document.getElementById("frame").rows = "100%,0%";

            var form = document.control;
            form.target = "main";
            form.action = "TempLogQueryServlet?serviceId=getDetailAggregation&nowPage=1&queryCount=10";
            form.submit();

            form.target = "subMain";
            form.action="about:blank";
            form.submit();
        }
        function getMyFriendAggregation(){
            parent.document.getElementById("frame").rows = "100%,0%";

            var form = document.control;
            form.target = "main";
            form.action = "TempLogQueryServlet?serviceId=getMyFriendAggregation&nowPage=1&queryCount=10";
            form.submit();

            form.target = "subMain";
            form.action="about:blank";
            form.submit();
        }
        function getBroadcastCheck(){
            parent.document.getElementById("frame").rows = "60%,40%";
            var form = document.control;
            form.target = "main";
            form.action = "TempLogQueryServlet?serviceId=getStatusChangeList&nowPage=1&queryCount=10";
            form.submit();
            
            form.target = "subMain";
            form.action = "TempLogQueryServlet?serviceId=getBroadcastList&sequence01=1";
            form.submit();
        }
        function getPhoneBook() {
            parent.document.getElementById("frame").rows = "30%,70%";
            var form = document.control;
            form.target = "main";
            form.action = "PhoneBookServlet?serviceId=getPhoneBookManager&nowPage=1&queryCount=20";
            form.submit();

            form.target = "subMain";
            form.action = "PhoneBookServlet?serviceId=getPhoneBookList&nowPage=1&queryCount=20";
            form.submit();

        }
        
    </script>

    <body onload="getNormalView();">
        <form name="control" action="" accept-charset="UTF-8" method="POST">
            <h5>
                <hr>
                <ul>
                    <b>< View ></b>
                    <br>
                    <li><a href="javascript:getNormalView();">Normal View</a></li>
                    <li><a href="javascript:getDetailAggregation();">Detail Statement</a></li>
                    <li><a href="javascript:getMyFriendAggregation();">My Friends Statement</a></li>
                    <li><a href="javascript:getPhoneBook();">Phone Book</a></li>
                </ul>
                <hr>

<!--                <ul>
                    <b>< old ></b>
                    <br>
                    <li><a href="javascript:getDetailView();">Detail View</a></li>
                    <li><a href="javascript:getBroadcastCheck();">Broadcast Check</a></li>
                </ul>

                 <hr>
               -->
            </h5>
        </form>
    </body>
</html>
